package com.yangzc.lion.sys.organization.model;

import java.util.ArrayList;
import java.util.List;

import com.yangzc.lion.sys.organization.interfaces.ISysOrgGroup;

/**
 * 群组
 * 
 * @author 叶中奇
 */
public class SysOrgGroup extends SysOrgElement implements ISysOrgGroup {

	private static final long serialVersionUID = 4327787051787638376L;

	public SysOrgGroup() {
		super();
		setFdOrgType(new Integer(ORG_TYPE_GROUP));
	}

	/*
	 * 群组类别
	 */
	private SysOrgGroupCate fdGroupCate;

	public SysOrgGroupCate getFdGroupCate() {
		return getHbmGroupCate();
	}

	public void setFdGroupCate(SysOrgGroupCate groupCate) {
		setHbmGroupCate(groupCate);
	}

	public SysOrgGroupCate getHbmGroupCate() {
		return fdGroupCate;
	}

	public void setHbmGroupCate(SysOrgGroupCate groupCate) {
		this.fdGroupCate = groupCate;
	}

	/*
	 * 群组成员
	 */
	private List fdMembers;

	public List getFdMembers() {
		List rtnVal = new ArrayList();
		if (getHbmMembers() != null)
			rtnVal.addAll(getHbmMembers());
		return rtnVal;
	}

	public void setFdMembers(List members) {
		if (this.fdMembers == members)
			return;
		if (this.fdMembers == null)
			this.fdMembers = new ArrayList();
		else
			this.fdMembers.clear();
		if (members != null)
			this.fdMembers.addAll(members);
	}

	public List getHbmMembers() {
		return fdMembers;
	}

	public void setHbmMembers(List members) {
		this.fdMembers = members;
	}
	
	private String[] personMemeber;

	public String[] getPersonMemeber() {
		return personMemeber;
	}

	public void setPersonMemeber(String[] personMemeber) {
		this.personMemeber = personMemeber;
	}
	
	

}
